home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / FILENO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  313 b   |  10 lines

  1. /* fileno.c */
  2. #include <stdio.h>
  3. main()
  4. {
  5.     printf("Handle for stdin: %d\n",  fileno(stdin));
  6.     printf("Handle for stdout: %d\n", fileno(stdout));
  7.     printf("Handle for stderr: %d\n", fileno(stderr));
  8.     printf("Handle for stdaux: %d\n", fileno(stdaux));
  9.     printf("Handle for stdprn: %d\n", fileno(stdprn));
  10. }